package com.easygo.controller;

import com.easygo.service.IAdminService;
import com.xuexi.easygo.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Scope("prototype")
public class AdminController {

    @Autowired
    IAdminService adminService;

    @RequestMapping("admin_login")
    public Admin adminLogin(@RequestBody Admin admin){
        return adminService.adminlogin(admin);
    }
}
